package com.peter.design.pattern.singleton;


import com.peter.design.pattern.singleton.lazy.LazyDoubleCheckSingleton;
import com.peter.design.pattern.singleton.lazy.LazySimpleSingleton;
import com.peter.design.pattern.singleton.threadlocal.ThreadLocalSingleton;


public class ExectorThread implements Runnable{

    public void run() {

        System.out.println(LazySimpleSingleton.getInstance());
//        LazyDoubleCheckSingleton instance = LazyDoubleCheckSingleton.getInstance();
//        ThreadLocalSingleton instance = ThreadLocalSingleton.getInstance();
//        System.out.println(ThreadLocalSingleton.getInstance());
//        System.out.println(Thread.currentThread().getName() + ":" + instance);

    }
}
